]> dgit.raspbian.org Git - gnome-shell.git/commit
cleanup: Use Array.includes() to check for element existence
authorFlorian Müllner <fmuellner@gnome.org>
Sat, 14 Jul 2018 20:56:22 +0000 (22:56 +0200)
committerFlorian Müllner <florian.muellner@gmail.com>
Mon, 1 Jul 2019 21:28:52 +0000 (21:28 +0000)
commitf6b4b96737d36a138de4b4350ef59df4a944e379
tree7780cf722bd735afba74f0112ceea7877f74bb13
parentb87455c089a34e427e4b43dcad89d87fe527b3e7
cleanup: Use Array.includes() to check for element existence

We can use that newer method where we don't care about the actual position
of an element inside the array.

(Array.includes() and Array.indexOf() do behave differently in edge cases,
for example in the handling of NaN, but those don't matter to us)

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/152
29 files changed:
js/extensionPrefs/main.js
js/misc/extensionUtils.js
js/misc/keyboardManager.js
js/ui/appDisplay.js
js/ui/calendar.js
js/ui/components/__init__.js
js/ui/components/autorunManager.js
js/ui/components/networkAgent.js
js/ui/components/polkitAgent.js
js/ui/dash.js
js/ui/endSessionDialog.js
js/ui/extensionDownloader.js
js/ui/extensionSystem.js
js/ui/grabHelper.js
js/ui/inhibitShortcutsDialog.js
js/ui/keyboard.js
js/ui/main.js
js/ui/messageList.js
js/ui/messageTray.js
js/ui/padOsd.js
js/ui/panel.js
js/ui/remoteSearch.js
js/ui/runDialog.js
js/ui/sessionMode.js
js/ui/status/network.js
js/ui/status/volume.js
js/ui/windowManager.js
js/ui/workspace.js
js/ui/workspaceThumbnail.js